#include "UdpEchoServer.hpp"
#include <unordered_map>

std::string Translate(std::string word)
{
    static std::unordered_map<std::string, std::string> words{
        {"world" ,"世界"},
        {"wgm", "你爹"},
        {"apple", "苹果"}
    };
    if(words.find(word) == words.end())
    {
        return "未找到！";
    }
    else
        return words[word];
}

int main()
{

    UdpEchoServerModule::UdpEchoServer server(Translate);
    server.Start();
    return 0;
}